				
						<h2 style="font: 36px '微软雅黑';text-align: center;">〖瘦吧〗顾客减肥转店通知单</h2>
						
						<div style="margin: 0 auto;width: 650px;padding: 10px;">
							<ul>
								<li style="margin-top: 10px;">
									<input id="bsCusIds" type="hidden"  name="btoShop.customerIds" value="${customer.ids !}">
									<span style="margin-left: 23px;">姓名</span>
									<input type="text"  style="border-bottom: 1px solid black;width: 80px;text-align:center;" readonly="readonly" value="${customer.name !}"/>
									<span style="margin-left: 50px;">年龄</span>
									<input type="text" style="border-bottom: 1px solid black;width: 60px;text-align:center;" readonly="readonly" value="${customer.age !}"/>
									<span style="margin-left: 62px;">身高</span>
									<input type="text" style="border-bottom: 1px solid black;width: 80px;text-align:center;" readonly="readonly" value="${customer.customerDetail.height !}"/>cm
									<span style="margin-left: 40px;">电话</span>
									<input type="text" style="border-bottom: 1px solid black;width: 80px;text-align:center;" readonly="readonly" value="${customer.phone !}"/>
								</li>
								<li style="margin-top: 10px;">
									<span >标准体重</span>
									<input type="text" style="border-bottom: 1px solid black;width: 80px;text-align:center;" readonly="readonly" value="${customer.customerAgreement.std_weight !}"/>斤
									<span style="margin-left: 23px;">减肥前</span>
									<input type="text" style="border-bottom: 1px solid black;width: 60px;text-align:center;" readonly="readonly" value="${customer.customerAgreement.before_weight !}"/>斤
									<span style="margin-left:40px;">减肥后</span>
									<input type="text" style="border-bottom: 1px solid black;width: 60px;text-align:center;" readonly="readonly" value="${customer.customerAgreement.after_weight !}"/>斤
									<span style="margin-left: 50px;">合计疗程</span>
									<input type="text" style="border-bottom: 1px solid black;width: 60px;text-align:center;" readonly="readonly" value="${customer.customerAgreement.treatment !}"/>
								</li>
								<li style="margin-top: 10px;">
									<span style="margin-left: -24px;">首次减肥日期</span>
									<input type="text"  name="btoShop.firstLoseWeightTime" style="border-bottom: 1px solid black;width: 80px;text-align:center;" readonly="readonly" value="${scDate !} "/>
									<span style="margin-left: 16px;">末次减肥日期</span>
									<input type="text"  name="btoShop.lastLoseWeightTime" style="border-bottom: 1px solid black;width: 70px;text-align:center;" readonly="readonly" value="${customer.customerDetail.toStoreDate !}"/>
									<span style="margin-left: 25px;">最后体重</span>
									<input type="text"  name="btoShop.lastWeight" style="border-bottom: 1px solid black;width: 60px;text-align:center;" readonly="readonly" value="${customer.customerDetail.nowWeight !}"/>斤
									<span style="margin-left: 22px;">减肥次数</span>
									<input type="text"  name="btoShop.delWeightNum" style="border-bottom: 1px solid black;width: 60px;text-align:center;" readonly="readonly" value="${count !}"/>
								</li>
								<li style="margin-top: 10px;">
									<span>协议编号</span>
									<input type="text"  name="btoShop.oldAgreementNumber" style="border-bottom: 1px solid black;width:150px;text-align:center;" readonly="readonly" value="${customer.customerAgreement.bh !}"/>
									
								</li>
							</ul>
							<p style="height: 10px;"></p>
							<table id="cuspro_datagrid" class="easyui-datagrid" style="width:100%;"></table>
							<ul>
								<li style="height: 40px;width: 100%;line-height: 40px;">
									<span>减至：</span>
									<input type="text" style="width: 90px;border-bottom: 1px solid black;text-align:center;" readonly="readonly"  value="${customer.customerDetail.nowWeight !}"/>斤
									<span style="margin-left: 100px;">截至：</span>
									<input type="text" style="width: 90px;border-bottom: 1px solid black;text-align:center;"/>年
									<input type="text" style="width: 90px;border-bottom: 1px solid black;text-align:center;"/>月底
								</li>
								<li style="height: 40px;width: 100%;line-height: 40px;">
									<span>转出门店</span>
									<input class="easyui-textbox theme-textbox-radius" style="width:119px;height:32px" readonly="readonly" value="${organization.name !}">
									<span style="margin-left: 70px;">转入门店</span>
<!-- 									<select class="easyui-combobox theme-textbox-radius" style="width:100px;height:30px"> -->
<!-- 										<option value="---请选择---">---请选择---</option> -->
<!-- 										<option value="门店一">门店一</option> -->
<!-- 									</select> -->

										<input id="organ" type="text" readonly style="width: 200px; height: 30px; padding-left: 10px;border-radius:3px" onclick="showMenu(); return false;" class="textbox" value="${parentOrg.name! }"/>
										<input  id="organIds" name="btoShop.intoShopIds" type="hidden" value="${parentOrg.ids! }">
									
								</li>
								<li style="height: 40px;width: 100%;line-height: 40px;">
									<span >转店原因</span>
<!-- 									<input class="easyui-textbox theme-textbox-radius" style="width:100px;height:30px" readonly="readonly" value="效果不好"> -->
									<#code type="select" id="zdyy_select" name="btoShop.toShopReason" code="code_zdyy"   class="easyui-combobox inputBox theme-textbox-radius" />
								</li>
								<li style="height: 40px;width: 100%;line-height: 40px;">
									<span>店长签字：</span>
									<input type="text" style="border-bottom: 1px solid black;width: 80px;text-align:center;" readonly="readonly" value="${customer.organization.agent.name !}"/>
									<span style="margin-left: 75px;">负责人签字：</span>
									<input type="text" style="border-bottom: 1px solid black;width: 80px;text-align:center;" readonly="readonly" value="${customer.customerDetail.fzUser.name !}"/>
									<span style="margin-left: 75px;">顾客签字：</span>
									<input type="text" style="border-bottom: 1px solid black;width: 80px;text-align:center;" readonly="readonly" value="${customer.name !}"/>
								</li>
								<li style="height: 50px;width: 100%;font-weight: bold;line-height: 20px;">
									注：为了让您达到最好的减肥效果，请于
									<input type="text" style="border-bottom: 1px solid black;width: 80px;text-align:center;"/>月
									<input type="text" style="border-bottom: 1px solid black;width: 80px;text-align:center;"/>日
									到店办理服务手续，逾期此单失效需重新办理。谢谢！
								</li>
								<li style="height: 50px;width: 100%;line-height: 50px;text-align: center;">
									<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="saveOut()">确认转出</a>
								</li>
							</ul>
							<div >
								
							</div>
							<div id="allData" style="display:none;"></div>
						</div>
							<div id="menuContent" class="menuContent" style="display: none; position: absolute;z-index: 10;">
								<ul id="organSelectTree" class="ztree" style="margin-top:-300px;width: 200px;"></ul>
							</div>
				<script type="text/javascript">
				var organIds=$('#organIds').val();
			var setting = {
				async : {
					enable : true,
					url : '${cxt!}/common/getOrgenTree2',
					autoParam : [ "id=ids" ],//, "name=n", "level=lv"
					otherParam : {
						"organIds" : organIds
					},
					type : "post"
				},
				view : {
					dblClickExpand : false
				},
				data : {
					simpleData : {
						enable : true
					}
				},
				callback : {
					onClick : onClick,
					onAsyncSuccess : organTreeOnAsyncSuccess
				}
			};
			var flag=0;//只初始化一次标识
			function organTreeOnAsyncSuccess(event, treeId, msg) {
				if(flag == 0){
					var organTree = $.fn.zTree.getZTreeObj("organSelectTree");
					var nodes = organTree.getNodes();
					flag = 1;
				}
			}
			function onClick(e, treeId, treeNode) {
				var zTree = $.fn.zTree.getZTreeObj("organSelectTree");
				var path = "";
				var sNodes = zTree.getSelectedNodes();
				if (sNodes.length > 0) {
					var node = sNodes[0].getPath();
					for(var i =0;i<node.length;i++){
						if(i == (node.length-1)){
							path += node[i].name;
						}else{
							path += node[i].name + "/";
						}
						
					}
				}
				var cityObj = $("#organ");
				cityObj.attr("value", path);
				$("#organIds").attr("value", treeNode.id);
				hideMenu();
			}
			function showMenu() {
				var cityObj = $("#organ");
				var cityOffset = $("#organ").offset();
				$("#menuContent").css({
					left : cityOffset.left + "px",
					top : cityOffset.top + cityObj.outerHeight() + "px"
				}).slideDown("fast");
				$("body").bind("mousedown", onBodyDown);
			}
			function hideMenu() {
				$("#menuContent").fadeOut("fast");
				$("body").unbind("mousedown", onBodyDown);
			}
			function onBodyDown(event) {
				if (!(event.target.id == "menuBtn"
						|| event.target.id == "menuContent" || $(event.target)
						.parents("#menuContent").length > 0)) {
					hideMenu();
				}
			}
			$.fn.zTree.init($("#organSelectTree"), setting);
		</script>
				
